<?php
declare (strict_types = 1);

namespace app\admin\common;

use think\facade\Db;

class Log
{
    protected static $logdata = [];

    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public static function saveLog()
    {
        var_dump(self::$logdata);
    }

    public static function txtLog(){
        var_dump(self::$logdata);
    }

    /**
     * 给日志服务类赋值
     * @param null $data
     */
    public function setData($data = []){
        self::$logdata = $data;var_dump(self::$logdata);
        $resList = Db::name('user')->field('password, id, status, admintype, rid, cid')->where(['username'=>'admin', 'is_delete'=>1])->find();
        //print_r($resList);
    }

}
